<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${productAdvposition.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">产品名称：</label>
                            <div class="col-sm-8">
                                <input readonly="readonly" id="productname" name="productname"
                                       th:value="${productAdvposition.productname}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">频道名称：</label>
                            <div class="col-sm-8">
                                <input readonly="readonly" id="catalogname" name="catalogname"
                                       th:value="${productAdvposition.catalogname}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">广告位名称：</label>
                            <div class="col-sm-8">
                                <input maxlength="30" id="advpositionname" name="advpositionname"
                                       th:value="${productAdvposition.advpositionname}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">广告位类型：</label>
                            <div class="col-sm-8">
                                <input readonly="readonly" id="advpositiontypename" name="advpositiontypename"
                                       th:value="${productAdvposition.advpositiontypename}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group" id="aaaa" style="display: none;">
                            <label class="col-sm-3 control-label">广告间隔：</label>
                            <div class="col-sm-8">
                                <input th:value="${productAdvposition.advInterval}"
                                       id="advInterval" name="advInterval" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">广告位宽：</label>
                            <div class="col-sm-8">
                                <input maxlength="30" id="advpositionwide" name="advpositionwide"
                                       th:value="${productAdvposition.advpositionwide}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">广告位高：</label>
                            <div class="col-sm-8">
                                <input maxlength="30" id="advpositionheight" name="advpositionheight"
                                       th:value="${productAdvposition.advpositionheight}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片尺寸描述：</label>
                            <div class="col-sm-8">
                                <input maxlength="30" id="imgsizedes" name="imgsizedes"
                                       th:value="${productAdvposition.imgsizedes}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片比例描述：</label>
                            <div class="col-sm-8">
                                <input maxlength="30" id="imgscaledes" name="imgscaledes"
                                       th:value="${productAdvposition.imgscaledes}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片格式描述：</label>
                            <div class="col-sm-8">
                                <input maxlength="30" id="imgformatdes" name="imgformatdes"
                                       th:value="${productAdvposition.imgformatdes}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">支持SSP：</label>
                            <div class="col-sm-8">
                                <select id="isssp" th:field="${productAdvposition.isssp}"
                                        th:value="${productAdvposition.isssp}" name="isssp"
                                        class="form-control">
                                    <option value="1" th:selected="${productAdvposition.isssp=='1'}">支持</option>
                                    <option value="0" th:selected="${productAdvposition.isssp=='0'}">不支持</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/market/productAdvposition/edit.js">
</script>
<script type="text/javascript" th:inline="javascript">
    $(function () {
        getType();
    })

    function getType() {
        var advpositiontypename = $("#advpositiontypename").val();
        if (advpositiontypename == "信息流广告位") {
            $("#aaaa").show();
        } else {
            $("#aaaa").hide();
        }
    }
</script>
</body>
</html>
